home *** CD-ROM | disk | FTP | other *** search
/ Champak 145 / (Vol 145) Dec 21 2011.iso / Games / locochew.swf / scripts / __Packages / classes / Fruit.as < prev    next >
Encoding:
Text File  |  2011-12-21  |  7.5 KB  |  287 lines

  1. function ┬º\x04\x05┬º()
  2. {
  3.    set("\x03",1123 % 511 * true);
  4.    ┬º┬ºpush("\x03");
  5.    if("\x01")
  6.    {
  7.    }
  8.    return eval(┬º┬ºpop());
  9. }
  10. var ┬º\x01┬º = -41 + "\x04\x05"();
  11. while(true)
  12. {
  13.    if(eval("\x01") == 60)
  14.    {
  15.       set("\x01",eval("\x01") - 32);
  16.       ┬º┬ºpush(true);
  17.       continue;
  18.    }
  19.    if(eval("\x01") == 77)
  20.    {
  21.       set("\x01",eval("\x01") + 749);
  22.       ┬º┬ºpush("\x0f");
  23.       continue;
  24.    }
  25.    if(eval("\x01") == 25)
  26.    {
  27.       set("\x01",eval("\x01") + 592);
  28.       if(!_global.classes)
  29.       {
  30.          _global.classes = new Object();
  31.       }
  32.       function ┬º\x04\x05┬º()
  33.       {
  34.          set("\x03",1123 % 511 * true);
  35.          ┬º┬ºpush("\x03");
  36.          if("\x01")
  37.          {
  38.          }
  39.          return eval(┬º┬ºpop());
  40.       }
  41.       if(!_global.classes.Fruit)
  42.       {
  43.          classes.Fruit extends MovieClip;
  44.          var _loc2_ = classes.Fruit = function()
  45.          {
  46.             super();
  47.          }.prototype;
  48.          addr143:
  49.          _loc2_.init = function(game_ref, isBomb, scoreMultiplier)
  50.          {
  51.             this.game_ref = game_ref;
  52.             this.angle = 180 + Math.floor(Math.random() * (this.FRUIT_HIGH_ANGLE - this.FRUIT_LOW_ANGLE + 1)) + this.FRUIT_LOW_ANGLE;
  53.             this.speed = Math.floor(Math.random() * (this.FRUIT_HIGH_SPEED - this.FRUIT_LOW_SPEED + 1)) + this.FRUIT_LOW_SPEED;
  54.             this.xspeed = Math.cos(this.angle * 3.141592653589793 / 180) * this.speed;
  55.             this.yspeed = Math.sin(this.angle * 3.141592653589793 / 180) * this.speed;
  56.             this._x = this.START_X;
  57.             this._y = this.START_Y;
  58.             this.isBomb = isBomb;
  59.             this.scoreMultiplier = scoreMultiplier;
  60.             this.isGlowing = false;
  61.             this.active = true;
  62.             this._xscale = 40;
  63.             this._yscale = 40;
  64.             game_ref.__gameSounds.playSoundByName("foodThrow",1);
  65.          };
  66.          _loc2_.onEnterFrame = function()
  67.          {
  68.             if(this.active)
  69.             {
  70.                this.move();
  71.             }
  72.          };
  73.          _loc2_.move = function()
  74.          {
  75.             this.yspeed += this.GRAVITY;
  76.             this._y += this.yspeed;
  77.             this._x += this.xspeed;
  78.             if(this._x < this.LEFT_BORDER || this._x > this.RIGHT_BORDER)
  79.             {
  80.                this.remove();
  81.             }
  82.             if(this._y > this.game_ref.BOTTOM_BORDER)
  83.             {
  84.                this.splash();
  85.             }
  86.          };
  87.          _loc2_.bounce = function(bounceFactor, xBounce)
  88.          {
  89.             this.yspeed *= bounceFactor * -1;
  90.             this.xspeed = xBounce;
  91.             this.game_ref.__gameSounds.playSoundByName("foodHitPad",1);
  92.          };
  93.          _loc2_.splash = function()
  94.          {
  95.             this.gotoAndPlay("splash");
  96.             if(this.isBomb)
  97.             {
  98.                this.game_ref.__gameSounds.playSoundByName("bombExplode",1);
  99.             }
  100.             else
  101.             {
  102.                this.game_ref.__gameSounds.playSoundByName("foodHitGround",1);
  103.             }
  104.             this.remove_IV = setInterval(this,"remove",this.REMOVE_TIME * 1000);
  105.             this.active = false;
  106.          };
  107.          _loc2_.setGlow = function()
  108.          {
  109.             this.game_ref.__gameSounds.playSoundByName("foodHitPowerup",1);
  110.             this.gotoAndPlay("glow");
  111.             this.isGlowing = true;
  112.          };
  113.          _loc2_.remove = function()
  114.          {
  115.             clearInterval(this.remove_IV);
  116.             this.game_ref.removeFruit(this);
  117.          };
  118.          _loc2_.FRUIT_LOW_ANGLE = 30;
  119.          _loc2_.FRUIT_HIGH_ANGLE = 70;
  120.          _loc2_.FRUIT_LOW_SPEED = 3;
  121.          _loc2_.FRUIT_HIGH_SPEED = 5;
  122.          _loc2_.START_X = 590;
  123.          _loc2_.START_Y = 80;
  124.          _loc2_.REMOVE_TIME = 1;
  125.          _loc2_.GRAVITY = 0.5;
  126.          _loc2_.LEFT_BORDER = -50;
  127.          _loc2_.RIGHT_BORDER = Stage.width + 50;
  128.          ┬º┬ºpush(ASSetPropFlags(classes.Fruit.prototype,null,1));
  129.       }
  130.       ┬º┬ºpop();
  131.       break;
  132.    }
  133.    if(eval("\x01") == 741)
  134.    {
  135.       set("\x01",eval("\x01") - 664);
  136.       var ┬º┬ºpop() = function ┬º\x04\x05┬º()
  137.       {
  138.          set("\x03",1123 % 511 * true);
  139.          ┬º┬ºpush("\x03");
  140.          if("\x01")
  141.          {
  142.          }
  143.          return eval(┬º┬ºpop());
  144.       };
  145.       continue;
  146.    }
  147.    if(eval("\x01") == 465)
  148.    {
  149.       set("\x01",eval("\x01") - 440);
  150.       continue;
  151.    }
  152.    if(eval("\x01") == 136)
  153.    {
  154.       set("\x01",eval("\x01") + 842);
  155.       ┬º┬ºpush(true);
  156.       continue;
  157.    }
  158.    if(eval("\x01") == 996)
  159.    {
  160.       set("\x01",eval("\x01") - 790);
  161.       break;
  162.    }
  163.    if(eval("\x01") != 502)
  164.    {
  165.       if(eval("\x01") == 113)
  166.       {
  167.          set("\x01",eval("\x01") + 23);
  168.       }
  169.       else if(eval("\x01") == 978)
  170.       {
  171.          set("\x01",eval("\x01") - 476);
  172.          if(function ┬º\x04\x05┬º()
  173.          {
  174.             set("\x03",1123 % 511 * true);
  175.             ┬º┬ºpush("\x03");
  176.             if("\x01")
  177.             {
  178.             }
  179.             return eval(┬º┬ºpop());
  180.          })
  181.          {
  182.             set("\x01",eval("\x01") - 146);
  183.          }
  184.       }
  185.       else if(eval("\x01") == 759)
  186.       {
  187.          set("\x01",eval("\x01") - 18);
  188.          ┬º┬ºpush("\x0f");
  189.          ┬º┬ºpush(1);
  190.       }
  191.       else if(eval("\x01") == 206)
  192.       {
  193.          set("\x01",eval("\x01") - 70);
  194.       }
  195.       else if(eval("\x01") == 826)
  196.       {
  197.          set("\x01",eval("\x01") + 74);
  198.          ┬º┬ºpush(eval(function ┬º\x04\x05┬º()
  199.          {
  200.             set("\x03",1123 % 511 * true);
  201.             ┬º┬ºpush("\x03");
  202.             if("\x01")
  203.             {
  204.             }
  205.             return eval(┬º┬ºpop());
  206.          }));
  207.       }
  208.       else if(eval("\x01") == 900)
  209.       {
  210.          set("\x01",eval("\x01") - 729);
  211.          ┬º┬ºpush(!function ┬º\x04\x05┬º()
  212.          {
  213.             set("\x03",1123 % 511 * true);
  214.             ┬º┬ºpush("\x03");
  215.             if("\x01")
  216.             {
  217.             }
  218.             return eval(┬º┬ºpop());
  219.          });
  220.       }
  221.       else if(eval("\x01") == 356)
  222.       {
  223.          set("\x01",eval("\x01") + 403);
  224.       }
  225.       else if(eval("\x01") == 333)
  226.       {
  227.          set("\x01",eval("\x01") + 426);
  228.       }
  229.       else if(eval("\x01") == 28)
  230.       {
  231.          set("\x01",eval("\x01") + 968);
  232.          if(function ┬º\x04\x05┬º()
  233.          {
  234.             set("\x03",1123 % 511 * true);
  235.             ┬º┬ºpush("\x03");
  236.             if("\x01")
  237.             {
  238.             }
  239.             return eval(┬º┬ºpop());
  240.          })
  241.          {
  242.             set("\x01",eval("\x01") - 790);
  243.          }
  244.       }
  245.       else
  246.       {
  247.          if(eval("\x01") != 171)
  248.          {
  249.             if(eval("\x01") == 617)
  250.             {
  251.                set("\x01",eval("\x01") - 617);
  252.             }
  253.             break;
  254.          }
  255.          set("\x01",eval("\x01") + 294);
  256.          if(function ┬º\x04\x05┬º()
  257.          {
  258.             set("\x03",1123 % 511 * true);
  259.             ┬º┬ºpush("\x03");
  260.             if("\x01")
  261.             {
  262.             }
  263.             return eval(┬º┬ºpop());
  264.          })
  265.          {
  266.             set("\x01",eval("\x01") - 440);
  267.          }
  268.       }
  269.       continue;
  270.    }
  271.    set("\x01",eval("\x01") - 146);
  272.    toggleHighQuality();
  273.    tellTarget(function ┬º\x04\x05┬º()
  274.    {
  275.       set("\x03",1123 % 511 * true);
  276.       ┬º┬ºpush("\x03");
  277.       if("\x01")
  278.       {
  279.       }
  280.       return eval(┬º┬ºpop());
  281.    })
  282.    {
  283.       ┬º┬ºpop()[┬º┬ºpop()].playSoundByName();
  284.       ┬º┬ºgoto(addr143);
  285.    }
  286. }
  287.